/* FileSearchPopup Component Styles */

.file-search-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
  z-index: 1000;
}

.file-search-popup {
  background: var(--background);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  width: 400px;
  max-width: 90vw;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.file-search-header {
  padding: 8px;
  border-bottom: 1px solid var(--panel-border);
}

.file-search-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--input-background);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  color: var(--foreground);
  font-size: 13px;
  outline: none;
}

.file-search-input:focus {
  border-color: var(--focus-border);
}

.file-search-input::placeholder {
  color: var(--foreground);
  opacity: 0.5;
}

.file-search-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.file-search-loading,
.file-search-empty {
  padding: 16px;
  text-align: center;
  color: var(--foreground);
  opacity: 0.6;
  font-size: 13px;
}

.file-search-section-title {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.5;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s;
}

.file-item:hover,
.file-item.selected {
  background: var(--list-hover-background);
}

.file-item.selected {
  background: var(--selection-background);
}

.file-item-icon {
  display: flex;
  align-items: center;
  color: var(--foreground);
  opacity: 0.7;
  flex-shrink: 0;
}

.file-item.directory .file-item-icon {
  color: var(--vscode-gitDecoration-untrackedResourceForeground, #73c991);
}

.file-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.file-item-name {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-path {
  font-size: 11px;
  color: var(--foreground);
  opacity: 0.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

